import request from '@/utils/request';

// 提现审核列表
export function getWithdrawListApi(query) {
  return request({
    url: '/v1/withdrawApplyList',
    method: 'post',
    data: query
  });
}

// 提现审核列表导出
export function exportWithdrawApi(query) {
  return request({
    url: '/v1/withdrawApplyExport',
    method: 'post',
    data: query
  });
}

// 审核驳回原因查询
export function getRejectReasonApi(query) {
  return request({
    url: '/v1/getWithdrawRejectReason',
    method: 'get',
    params: query
  });
}

// 不通过原因查询
export function getNoPassReasonApi(query) {
  return request({
    url: '/v1/getWithdrawNotPassReason',
    method: 'get',
    params: query
  });
}

// 会员全部提现账号查询
export function wtithdrawAccountApi(query) {
  return request({
    url: '/v1/withdrawAccountList',
    method: 'get',
    params: query
  });
}

// 审核操作
export function updateApi(query) {
  return request({
    baseURL: process.env.LIFE_ADMIN_API,
    url: '/shop/withdraw/update',
    method: 'post',
    data: query
  });
}

// 审核批量操作
export function updateBatchApi(query) {
  return request({
    baseURL: process.env.LIFE_ADMIN_API,
    url: '/shop/withdraw/update/batch',
    method: 'post',
    data: query
  });
}

// 转账操作 包括 自动转账 手动转账 审核驳回
export function transferApi(query) {
  return request({
    baseURL: process.env.LIFE_ADMIN_API,
    url: '/shop/withdraw/update/transfer',
    method: 'post',
    data: query
  });
}

// 审核理由备注修改
export function remarkUpdateApi(query) {
  return request({
    baseURL: process.env.LIFE_ADMIN_API,
    url: '/shop/review/recharge/remark/update',
    method: 'post',
    data: query
  });
}

// 会员认证详情
export function getVerifyDetailApi(query) {
  return request({
    baseURL: process.env.LIFE_ADMIN_API,
    url: '/member/verify/detail',
    method: 'get',
    params: query
  });
}

// 通过实名认证
export function pastVerifyApi(query) {
  return request({
    baseURL: process.env.LIFE_ADMIN_API,
    url: '/member/verify/update',
    method: 'post',
    data: query
  });
}

// 统一发奖 列表
export function rewardListApi(query) {
  return request({
    baseURL: process.env.LIFE_ADMIN_API,
    url: '/activity/reward/getList',
    method: 'get',
    params: query
  });
}

// 统一发奖 新增
export function rewardAddApi(query) {
  return request({
    baseURL: process.env.LIFE_ADMIN_API,
    url: '/activity/reward/add',
    method: 'post',
    data: query
  });
}

// 统一发奖 发奖
export function rewardApi(query) {
  return request({
    baseURL: process.env.LIFE_ADMIN_API,
    url: '/activity/reward/award',
    method: 'post',
    data: query
  });
}

// 统一发奖 上传文件
export function uploadFileNoCompressApi(query) {
  return request({
    baseURL: process.env.FILE_URL,
    url: '/v2/users/upload/file',
    method: 'post',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    },
    data: query
  });
}
